<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>

	<div>
	  <table>
	   <tr>
	   		<td class="td2" style="width:5px">&nbsp;</td><td class="sub-title"><s:text name="list.children'sHome"></s:text> </td>
	   </tr>
	  </table>
	</div>


	<hr />
	<div>

	 <table id="commonTable" class="orangeTbl" width="100%">

	 	<tr>
	 		<th style="width:130px">Name</th><td  colspan="5"><s:property value="lamaNivasa.name"/></td>
	 	</tr>
	 	<tr>
	 		<th>Category</th><td><s:property value="lamaNivasa.category"/></td>
	 		<th>Date Established</th><td><s:date name="lamaNivasa.dateOfEstablishment" format="yyyy/MM/dd"/></td>
	 		<th>Divisional Secretariat</th><td><s:property value="lamaNivasa.divisionalSecretariat.name"/></td>

	 	</tr>
	 	<tr>
	 		<th>Address</th><td  colspan="5"><s:property value="lamaNivasa.address"/></td>
	 	</tr>
	 	<tr>
	 		<th>Telephone</th><td><s:property value="lamaNivasa.telephone"/></td>
	 		<th>Fax</th><td><s:property value="lamaNivasa.fax"/></td>
	 		<th>Email</th><td><s:property value="lamaNivasa.email"/></td>
	 	</tr>
	 	<tr>
	 		<th>Number of children</th><td><s:property value="lamaNivasa.numberOfChildren"/></td>
	 		<th>Min Age</th><td><s:property value="lamaNivasa.minAge"/></td>
	 		<th>Max Age</th><td><s:property value="lamaNivasa.maxAge"/></td>
	 	</tr>
	<s:if test="!sponsor">  <!-- Do not show the following for sponsors -->
	 	<tr>
	 		<th>Registration</th><td><s:property value="lamaNivasa.registrationStatus"/></td>
	 		<th>Registration Number</th><td><s:property value="lamaNivasa.registrationNumber"/></td>
	 		<th>Registered Date</th><td><s:date  name="lamaNivasa.registrationDate.time" format="yyyy/MM/dd"/></td>
	 	</tr>
   </s:if>
	 	<tr>
	 		<th>Funding Method</th><td><s:property value="lamaNivasa.fundingMethod"/></td>
	 		<th>Department Funding</th><td><s:property value="lamaNivasa.departmentFunding"/></td>
	 		<th>Number of Officers</th><td><s:property value="lamaNivasa.numberOfOfficers"/></td>
	 	</tr>


		<s:if test="admin">
	 	 <tr>
		 	<td colspan="6" style="padding-left:150px">
		 	  <table cellpadding="0" cellspacing="0">
		 		<s:url var="lamaNivasaEditUrl" action="edit" namespace="/lamaNivasa" includeParams="none">
			 		<s:param name="id" value="lamaNivasa.id"></s:param>
			 	</s:url>
			 	<sj:a href="%{lamaNivasaEditUrl}" targets="lamaNivasaResultDiv"><input type="button" value="Edit" /></sj:a>
			  </table>
			 </td>
		  </tr>
		</s:if>

	 </table>

	 </div>
